/* --- 整体布局 --- */
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: #0a0a0a;
  color: #fff;
  display: grid;
  grid-template-columns: 2fr 1fr; /* 左右两列 */
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  overflow: hidden;
}

/* 左侧主内容 */
.main-content {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    overflow-y: auto;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 10px;
    position: relative; /* 相对定位，方便进度条绝对定位 */
}

/* 链接样式 */
.folder-link {
  color: #fff;
  text-decoration: none;
}
.folder-link:hover {
  text-decoration: underline;
}

/* 标题 */
h2 {
  margin: 0;
  font-size: 1.8em;
  text-align: center;
  background: linear-gradient(90deg,#ff6ec7,#3b82f6,#00f0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 列表项 */
ul { list-style:none; padding:0; margin:0; }
li {
  margin:5px 0;
  padding:8px 12px;
  border-radius:15px;
  transition: all 0.2s;
  cursor:pointer;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
li:hover {
  background: rgba(255,255,255,0.15);
  border-image: linear-gradient(45deg,#ff6ec7,#3b82f6,#00f0ff) 1;
  border-style: solid;
}

/* 播放按钮 */
.play-btn {
  margin-left:10px;
  padding:4px 8px;
  border-radius:8px;
  border:none;
  background: linear-gradient(45deg,#ff6ec7,#3b82f6);
  color:#fff;
  cursor:pointer;
  transition: transform 0.2s;
}
.play-btn:hover { transform: scale(1.1); }

/* 播放控制栏 */
.player-controls {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  padding:10px;
  border-radius:15px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  border:1px solid rgba(255,255,255,0.1);
}
.player-controls button {
  border:none;
  border-radius:10px;
  padding:6px 10px;
  cursor:pointer;
  background: rgba(255,255,255,0.1);
  color:#fff;
  transition: all 0.2s;
}
.player-controls button:hover {
  background: linear-gradient(90deg,#ff6ec7,#3b82f6);
  color:#fff;
  transform: scale(1.05);
}

/* 音频播放器 */
#audioPlayer {
  width:100%;
  margin-top:10px;
  border-radius:12px;
  background: rgba(255,255,255,0.05);
}

/* 右侧歌词面板 */
.lyrics-panel {
  padding:20px;
  margin:10px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(15px);
  border-radius:20px;
  border:2px solid;
  border-image: linear-gradient(45deg,#ff6ec7,#3b82f6,#00f0ff) 1;
  overflow-y:auto;
  max-height: calc(100vh - 40px);
}
.lyrics-panel p {
  margin:6px 0;
  font-size:1em;
  color:#ccc;
  transition: all 0.3s;
}
.lyrics-panel p.active {
  color:#ff6ec7;
  font-weight:bold;
  font-size:1.1em;
  text-shadow:0 0 10px #ff6ec7;
}

/* 滚动条美化 */
.lyrics-panel::-webkit-scrollbar { width:8px; }
.lyrics-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg,#ff6ec7,#3b82f6);
  border-radius:10px;
}
.lyrics-panel::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius:10px;
}

/* 进度条 */
#progressContainer {
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.2);
    position: absolute;
    bottom: -230px;  /* 距离 main-content 底部 */
    left: 0;
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
    z-index: 10;
}
#progressBar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg,#ff6ec7,#3b82f6);
    border-radius: 5px;
}

/* 音量滑块 */
#volumeSlider { width:100px; }